<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>结算方式</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" charSet="UTF-8" src="js/sorttable.js"></script>
		<script language="JavaScript" charSet="UTF-8" src="js/public.js"></script>		
		<script type="text/javascript" charSet="UTF-8" src="js/date1.js"></script>
		<script type="text/javascript" charSet="UTF-8" src="js/checkboxSelect.js"></script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top"> 
				结算方式 
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="selectSettlement.action" method="post" theme="simple" id="delrow">
			<div id="info_main">
				<div id="select">
					<hr>
					<table>
						<tr>
							<td>
								代码&nbsp;
							</td>
							<td>
								<s:hidden name="pbaseSettlement.settlementId"></s:hidden>
								<s:textfield name="pbaseSettlement.settlementCode" size="12"></s:textfield>
								&nbsp;&nbsp;&nbsp;
							</td>
							<td>
								名称&nbsp;
							</td>
							<td>
								<s:textfield name="pbaseSettlement.settlementName" size="12"></s:textfield>							
								&nbsp;&nbsp;&nbsp;
							</td>
						</tr>
					</table>
				</div>
				<div class="sele">
					<input type="submit" value="查询" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize" />
					<input type="reset" value="重置" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize"/>
						<hr>
				</div>
				<!-- 信息显示栏 -->
				<div id="info_info0">
					<table id="info_table" width="300px"  cellspacing=1px cellpadding=1px  class="sortable">
						<thead>
							<tr>
								<th width="100px">
									代码
								</th>
								<th width="100px">
									名称
								</th>
								<th width="100px">
									科目代码
								</th>
							</tr>
						</thead>
						<tbody>
						<s:if test="!settlementDTOList.isEmpty()">
							<s:iterator value="settlementDTOList" status="stat">
								<tr ondblclick="childToParent('settlementId','<s:property value="settlement.settlementId"/>','settlementName','<s:property value="settlement.settlementName"/>')">
									<td>
										<s:property value="settlement.settlementCode"/>
									</td>
									<td>
										<s:property value="settlement.settlementName"/>
									</td>
									<td>
										<s:property value="pbaccountbook.accountbookName"/>
									</td>
								</tr>
							</s:iterator>
						</s:if>
						<s:else>
							<tr>
								
							</tr>
						</s:else>
						</tbody>
						<tfoot>
						</tfoot>
					</table>
					<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
				</div>					
			</div>
			</s:form>
		</div>
	</body>
</html>

